# coding=utf-8
"""
加密转换模块
"""
import hashlib


def md5(value):
    """
    把str转成md5(utf-8)
    """
    m_bytes = value.encode('utf-8')
    m_o = hashlib.md5()
    m_o.update(m_bytes)
    res = m_o.hexdigest()
    return res
